package com.heima.test6;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String code = Code.getLoginCode();
        System.out.println(code+"请输入验证码");
        if (sc.next().equals(code)) {
            System.out.println("登录成功");
        } else {
            System.out.println("验证码输入错误");

        }
    }
}
